package com.hxzf.mvp.dao.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 性别枚举
 *
 * @author Kai
 */
@Getter
@AllArgsConstructor
public enum Gender implements IEnum<Integer> {
    MALE(0, "男"),
    FEMALE(1, "女"),
    OTHER(-1, "未知");

    private Integer value;
    private String name;

    @JsonValue
    public Integer getValue() {
        return this.value;
    }
}